<?php

require_once 'init.inc';

$page = new Page(ARTICLES_PAGE_ID);
$title = $page->title();
$keywordsOb = new KeyWords('cf_pages', 'id', $page->id());
$keywords = $keywordsOb->words();

$articles = query2arrays("
	SELECT id,title,dt,summary,source,image
	FROM articles
	ORDER BY dt DESC
");

assignTemplateVars('page','title','keywords','articles');
display('articles');
?>